package org.suk.dp.flyweight;

/**
 * Description: <br/>
 * @version V1.0  2017/6/22 15:44  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class Client {
    public static void main(String[] args) {
        WebsiteFactory factory = new WebsiteFactory();
        factory.getWebsiteCategory("产品展示").use(new User("小菜"));
        factory.getWebsiteCategory("产品展示").use(new User("大菜"));
        factory.getWebsiteCategory("产品展示").use(new User("娇娇"));
        factory.getWebsiteCategory("博客").use(new User("老顽童"));
        factory.getWebsiteCategory("博客").use(new User("桃谷六仙"));
        factory.getWebsiteCategory("博客").use(new User("南海恶神"));
        System.out.println("网站总分类总数为："+factory.getWebsiteCount());
    }
}
